<!--
 * Copyright TLR Team, Inc. All Rights Reserved.
-->
<div class="modal fade" id="UserModal" tabindex="-1" role="dialog" aria-labelledby="UserModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="UserModalLabel">
                    <i class="fa fa-bank fa-fw hella-icon-offset"></i>用户
                </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">微信号标识</label>
                            <div class="col-xs-6">
                                <input type="text" class="form-control" ng-model="user.webchat">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">用户名</label>
                            <div class="col-xs-6">
                                <input type="text" class="form-control" ng-model="user.name">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">手机</label>
                            <div class="col-xs-6">
                                <input type="text" class="form-control" ng-model="user.tel">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">工号</label>
                            <div class="col-xs-6">
                                <input type="text" class="form-control" ng-model="user.employeeid">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">职务</label>
                            <div class="col-xs-6">
                                <select class="form-control" ng-model="user.employeetype" ng-options="empType.value as empType.name for empType in EMP.types"></select>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">电邮</label>
                            <div class="col-xs-6">
                                <input type="text" class="form-control" ng-model="user.email">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">地址</label>
                            <div class="col-xs-6">
                                <input type="text" class="form-control" ng-model="user.address">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">用户类别</label>
                            <div class="col-xs-6">
                                <select class="form-control" ng-model="user.type" ng-options="userType.value as userType.name for userType in USER.types"></select>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group">
                            <label class="control-label col-xs-4">状态</label>
                            <div class="col-xs-6">
                                <select class="form-control" ng-model="user.status" ng-options="userStatus.value as userStatus.name for userStatus in USER.statuses"></select>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="onUserSave()">保存
                </button>
            </div>
        </div>
    </div>
</div>
